package cn.yjr.vector;

import android.content.Context;
import android.os.Bundle;
import android.os.Handler;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import com.actionbarsherlock.app.ActionBar;
import com.actionbarsherlock.app.ActionBar.LayoutParams;
import com.actionbarsherlock.app.SherlockActivity;
import org.json.JSONObject;

public class MyBalanceActivity extends SherlockActivity
  implements View.OnClickListener
{
  ActionBar actionBar;
  Context context;
  LayoutInflater inflater;
  JSONObject jsonInfo;
  Handler mHandler;
  String response;
  View title_bar;

  private void initComponent()
  {
  }

  private void initEventListener()
  {
  }

  private void initTitleBar()
  {
    ActionBar.LayoutParams localLayoutParams = new ActionBar.LayoutParams(-1, -2, 17);
    this.title_bar = this.inflater.inflate(R.layout.my_balance_action_bar, null);
    this.actionBar.setCustomView(this.title_bar, localLayoutParams);
    this.actionBar.setDisplayShowHomeEnabled(false);
    this.actionBar.setDisplayShowTitleEnabled(false);
    this.actionBar.setDisplayOptions(16);
    this.actionBar.setDisplayShowCustomEnabled(true);
  }

  public void onClick(View paramView)
  {
    paramView.getId();
  }

  protected void onCreate(Bundle paramBundle)
  {
    super.onCreate(paramBundle);
    setContentView(R.layout.activity_my_balance);
    this.inflater = getLayoutInflater();
    this.actionBar = getSupportActionBar();
    this.context = this;
    initTitleBar();
    initComponent();
    initEventListener();
  }
}